<template>
	<view class="container">
		<!-- F1卡片 开始 -->
		<view class="card" v-for="(item,index) in list" :key='index'>
			<!-- F1-1 头部title 开始 -->
			<view class="head">
				<image src="@/static/image/spacialTown/icon.png" mode=""></image>
				<text>{{item.name}}</text>
			</view>
			<!-- F1-1 头部title 结束 -->
			
			<!-- F1-2 描述 开始 -->
			<view class="content">
				{{item.desc}}
			</view>
			<!-- F1-2 描述 结束 -->
			
			<!-- F1-3 x轴横向滚动图 开始 -->
				<scroll-view scroll-x="true" >
					<view class="image-Container">
						<image v-for="pic in item.images" :src="pic" mode="widthFix"></image>
					</view>
				</scroll-view>
			<!-- F1-3 x轴横向滚动图 结束 -->
		</view>
		<!-- F1卡片 结束 -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{
						name:'普安镇',
						desc:'普安镇，隶属于四川省广元市剑阁县，位于四川省北部，剑阁县中北部，地处四川盆地北部边缘，剑阁县中部偏北部的山地',
						images:[
							require('@/static/image/sceneStream/pic-3.png'),
							require('@/static/image/sceneStream/pic-4.png'),
							require('@/static/image/sceneStream/pic-6.png'),
							require('@/static/image/sceneStream/pic-4.png'),
							require('@/static/image/sceneStream/pic-8.png')
						],
					},
					{
						name:'朴子镇',
						desc:'朴子镇，隶属于四川省广元市剑阁县，位于四川省北部，剑阁县中北部，地处四川盆地北部边缘，剑阁县中部偏北部的山地',
						images:[
							require('@/static/image/sceneStream/pic-5.png'),
							require('@/static/image/sceneStream/pic-4.png'),
							require('@/static/image/sceneStream/pic-6.png'),
							require('@/static/image/sceneStream/pic-9.png'),
							require('@/static/image/sceneStream/pic-8.png')
						],
					},
					{
						name:'元坝区',
						desc:'元坝区，隶属于四川省广元市剑阁县，位于四川省北部，剑阁县中北部，地处四川盆地北部边缘，剑阁县中部偏北部的山地',
						images:[
							require('@/static/image/sceneStream/pic-6.png'),
							require('@/static/image/sceneStream/pic-8.png'),
							require('@/static/image/sceneStream/pic-9.png'),
							require('@/static/image/sceneStream/pic-10.png'),
							require('@/static/image/sceneStream/pic-3.png')
						],
					},
				],
			};
		}
	}
</script>

<style lang="scss">
	page {
		background: $page-color-base;
	}
	.card{
		border-radius: 8rpx;
		background-color: #fff;
		margin: 32rpx 32rpx 24rpx 32rpx;
		padding: 24rpx;
		.head{
			image{
				vertical-align: middle;
				width: 48rpx;
				height: 48rpx;
				margin-right: 24rpx;
			}
			text{
				vertical-align: middle;
			}
		}
		.content{
			padding: 10rpx;
		}
	}
	.image-Container{
		display: inline-flex;
		image{
			border-radius: 8rpx;
			width: 168rpx;
			height: 116rpx;
			display: inline-block;
			margin-right: 10rpx;
		}
	}
</style>
